server {
	listen 80 default_server;
	#listen [::]:80 default_server;
	server_name {{ server_name }};

	index index.html index.htm index.nginx-debian.html, index.php;

	location / {
		root /var/www/html;
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri $uri/ =404;
	}

    include /etc/nginx/fastcgi_for_moodle.conf;

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	#location ~ /\.ht {
	#	deny all;
	#}
}

